import {createRouter, createWebHistory} from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
    {
        path: '/',
        name: 'home',
        component: HomeView
    },

    {path: '/community', component: () => import( '../views/Community.vue')},
    {path: '/gameNews', component: () => import( '../views/GameNews.vue')},
    {path: '/home', component: () => import( '../views/HomeView.vue')},
    {path: '/media', component: () => import( '../views/Media.vue')}

]
const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router
